package app.domain.order.util;


public enum Side {
	S(1,"S"), B(-1,"B");

	private int sgn;
	private String side;

	Side(int sgn, String side) {
		this.sgn = sgn;
		this.side = side;
	}

	public int sgn() {
		return sgn;
	}
	
	public String getSide() {
		return side;
	}
	
	public static boolean isSide(String str) {
		for(Side s : Side.values()) {
			if(s.getSide().equals(str)) {
				return true;
			}
		}
		return false;
	}
}
